package com.ylbh.modules.reply.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylbh.common.pojo.reply.dto.CommunalDTO;
import com.ylbh.modules.reply.entity.ShoppingReply;
import com.ylbh.modules.reply.entity.ShoppingReplyType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 帮助回复类型管理
 * @author wjc
 * @date 2019-011-06 14:22:40
 */
@Mapper
@Repository
public interface ShoppingReplyTypeMapper extends BaseMapper<ShoppingReplyType> {

    /**
     * 帮助回复类型
     * @param typeDTO
     * @param  page
     * @return
     */
    List<ShoppingReplyType> selectReplyTypeList(@Param(value = "typeDTO") CommunalDTO typeDTO, Page page);

    /**
     * 修改类型表状态
     * @param communalDTO
     * @return
     */
    void updateReplyTypeEnableStateById(CommunalDTO communalDTO);

    /**
     * 问题类型新增
     * @param shoppingReplyType
     * @return
     */
    void insertReplyTypeClass(ShoppingReplyType shoppingReplyType);
    /**
     * 根据ID修改回复类型信息
     * @param shoppingReplyType
     * @return
     */
    void updateReplyTypeClassById(ShoppingReplyType shoppingReplyType);

    /**
     * 类型名称反回
     * @param
     * @return
     */
    List<ShoppingReplyType> selectTypeNameList();
}
